// AUSlotsTester.h : main header file for the AUSLOTSTESTER application
//

#if !defined(AFX_AUSLOTSTESTER_H__C90ED9FB_8737_4954_8F9B_88DF25696AE4__INCLUDED_)
#define AFX_AUSLOTSTESTER_H__C90ED9FB_8737_4954_8F9B_88DF25696AE4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols
#include "AUSlotsTester_i.h"
#include "WebServer.h"
#include "ApplicationWebPage.h"

/////////////////////////////////////////////////////////////////////////////
// CAUSlotsTesterApp:
// See AUSlotsTester.cpp for the implementation of this class
//

class CAUSlotsTesterApp : public CWinApp
{
public:
	CAUSlotsTesterApp();

	UINT GetWebPort() const;

	void SetWebPageDirty();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAUSlotsTesterApp)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CAUSlotsTesterApp)
	afx_msg void OnAppAbout();
	afx_msg void OnTestConfigureWebServerPort();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	BOOL InitATL();

	virtual BOOL OnIdle(LONG lCount);

	friend CWebServer& GetWebServer();

private:
	BOOL m_bATLInited;
	CWebServer m_WebServer;
	CApplicationWebPage m_WebPage;
};

CWebServer& GetWebServer();


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AUSLOTSTESTER_H__C90ED9FB_8737_4954_8F9B_88DF25696AE4__INCLUDED_)
